package com.clhbolg.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.clhbolg.domain.Talk;
import com.clhbolg.domain.vo.TalkVo;
import com.clhbolg.model.dto.TalkAdminDTO;
import com.clhbolg.model.dto.TalkDTO;
import com.clhbolg.model.vo.request.ConditionVO;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.formula.functions.T;

/**
 * 【请填写功能名称】Mapper接口
 *
 * @author cailinhu
 * @date 2023-02-08
 */
@DS("slave")
public interface TalkMapper extends BaseMapperPlus<TalkMapper, Talk, TalkVo> {

    Page<TalkDTO> findTalks(Page<T> page);

    Page<TalkAdminDTO> listBackTalks(@Param("vo") ConditionVO conditionVO, Page<?>  page );

    TalkAdminDTO getTalkByIdAdmin(Integer talkId);
}
